package com.zhuozhou.jdyc.main.menu.fragment;

import android.os.Bundle;

import androidx.fragment.app.Fragment;

import com.zhuozhou.jdyc.base.BaseViewPagerFragment;
import com.zhuozhou.jdyc.databinding.BaseTablayoutViewpagerBinding;
import com.zhuozhou.jdyc.main.main.viewmodel.MainViewModel;

/**
 * Create by CherishTang on 2020/3/27 0027
 * describe:
 */
public class TestSimpleFragment extends BaseViewPagerFragment<MainViewModel, BaseTablayoutViewpagerBinding> {
    @Override
    protected PagerInfo[] getPagers() {
        PagerInfo[] pagerInfo = new PagerInfo[4];
        pagerInfo[0] = new PagerInfo("整租",TestFragment.class,mViewModel.createBundle(0,null));
        pagerInfo[1] = new PagerInfo("合租",TestFragment.class,mViewModel.createBundle(1,null));
        pagerInfo[2] = new PagerInfo("新房",TestFragment.class,mViewModel.createBundle(2,null));
        pagerInfo[3] = new PagerInfo("二手房",TestFragment.class,mViewModel.createBundle(3,null));
        return pagerInfo;
    }

    public static Fragment instantiate(Bundle bundle) {
        Fragment fragment = new TestSimpleFragment();
        fragment.setArguments(bundle);
        return fragment;
    }
}
